﻿package mortal.game.view.collect
{
    import flash.events.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class LanderIcon extends ActionBaseIcon
    {
        private static var _instance:LanderIcon;

        public function LanderIcon(param1:String)
        {
            super(ResFileConst.LanderIcon);
            this.layer = LayerManager.actionIconLayer;
            this.name = ResFileConst.LanderIcon;
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            super.clickHandler(event);
            this.stopEffect();
            LanderWindow.instance.show();
            return;
        }// end function

        public static function get instance() : LanderIcon
        {
            if (!_instance)
            {
                _instance = new LanderIcon(ResFileConst.LanderIcon);
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
